package com.example.Text;

/**
 * Created by Administrator on 2020/11/19 0019.
 * 123
 */
public class Text {
    public static void main(String[] args) {
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("abcdefg");
        System.out.println(stringBuffer.reverse());
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("abcdefg");
        System.out.println(stringBuilder.reverse());
        String Name = "abcdef";
        System.out.println(Name.indexOf("c"));
        System.out.println(Name.replace("a","f"));
    }
}
